package com.yc.mapper;

import com.yc.entities.BloodSugarPermission;
import com.yc.entities.BloodSugarUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.entities.custom.UserRoleBean;

import java.util.List;

/**
 * <p>
 * 用户主体账户信息表 Mapper 接口
 * </p>
 *
 * @author kuakha
 * @since 2021-04-07
 */
public interface BloodSugarUserMapper extends BaseMapper<BloodSugarUser> {

    UserRoleBean getUserRoleByUserId(Integer userId);

    List<BloodSugarPermission> selectPermissionInfoByUserAccount(String account);

    int saveUser(BloodSugarUser bloodSugarUser);

}
